package sf.action;
import sf.dao.inf.TestInf;
import sf.dao.pojo.TUser;
import com.opensymphony.xwork2.ActionSupport;

public class TestAction extends ActionSupport {
	private TestInf testInf;
    private TUser user;
	
	public TestInf getTestInf() {
		return testInf;
	}

	public void setTestInf(TestInf testInf) {
		this.testInf = testInf;
	}
	public TUser getUser() {
		return user;
	}
	public void setUser(TUser user) {
		this.user = user;
	}
    @Override
    public String execute() throws Exception {
    	System.out.println("........"+user.getSrealname());
    	if(testInf.addUser(user)){
    		return "success";
    	}else{
    		return "error";
    	}
    }
}
